package my.test;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.go2.shipping.common.DateUtils;
import com.yuhang.demo.util.PostUtil;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.*;

public class Xt {

    private Areas areas;

    public Areas getAreas() {
        return areas;
    }

    public void setAreas(Areas areas) {
        this.areas = areas;
    }


    public static void main(String[] args) throws IOException {
        String url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=57_MhQY-J9cQab4Jki28ePWeQLmo-PRqeHC6oEqMejQG-jgHHfRHdfTFrrLwfWE1JqUM53yJXhAuAp9ec2MyxgDOd4C5h0zG-kUbURDxNFDKhp3SXwXw9YeCeakH2pqPphz3bYSMSKpFhkAonUbTYZbAJALQR";
        String json = "{" +
                " \"page\": \"pages/index/index\"," +
                " \"scene\": \"a=1\"" +
                "}";
       String ret =  PostUtil.httpPostBodyImg(url, json);
        System.out.println(ret);

    }


    public static String xx(Long time) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String time1 = sdf.format(new Date(time * 1000));
        return time1;
    }

}